<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:77:"/Users/qingyun/php/fruits/public/../application/home/view/commodity_lists.tpl";i:1514897709;s:59:"/Users/qingyun/php/fruits/application/home/view/layout1.tpl";i:1515032902;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">

</head>
<body>
<script src="/static/common/js/jquery1.42.min.js" type="text/javascript"></script>
<script src="/static/common/js/common_js.js" type="text/javascript"></script>
<script src="/static/common/js/footer.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/static/con/css/style.css" />
<link rel="stylesheet" type="text/css" href="/static/con/css/shopping-mall-index.css" />
<script type="text/javascript" src="/static/con/js/jquery.js"></script>
<script src="/static/common/js/jquery.SuperSlide.2.1.1.js" type="text/javascript"></script>
<script type="text/javascript" src="/static/con/js/zhonglin.js"></script>
<script type="text/javascript" src="/static/con/js/zhongling2.js"></script>
<script type="text/javascript" src="/static/con/js/jquery.provincesCity.js"></script>
<script type="text/javascript" src="/static/con/js/provincesData.js"></script>
<script type="text/javascript" src="/static/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/static/h-ui.admin/js/H-ui.admin.js"></script>
<link href="/static/common/css/page.css" rel="stylesheet" type="text/css" />
<link href="/static/common/css/common.css" rel="stylesheet" type="text/css" />
<link href="/static/common/css/style.css" rel="stylesheet" type="text/css" />
<!--顶部样式-->
<div id="top">
    <div class="top" style="height: 0px">
        <div class="Collection"><em></em><a href="#">收藏我们</a></div>
        <div class="hd_top_manu clearfix">
            <ul class="clearfix">
                <?php if(session('?UserXinxi') == false): ?>
                    <li class="hd_menu_tit zhuce" data-addclass="hd_menu_hover">欢迎光临本店！<a href="<?php echo url('home/Login/index'); ?>" class="red">[请登录]</a> 新用户<a href="<?php echo url('home/User/add'); ?>" class="red">[免费注册]</a></li>
                <?php else: ?><li class="hd_menu_tit zhuce" data-addclass="hd_menu_hover">欢迎光临本店！<a href="<?php echo url('home/User/userInfo'); ?>" class="red">个人信息</a><a href="<?php echo url('home/User/loginOut'); ?>" class="red">退出登录</a></li>

                <li class="hd_menu_tit" data-addclass="hd_menu_hover"><a href="/home/commodity/orderlook">我的订单</a></li>
                <li class="hd_menu_tit hd_Shopping_Cart" data-addclass="hd_menu_hover">
                    <a href="<?php echo url('home/commodity/cart'); ?>" class="hd_menu">查看购物车(<b class="eee">0</b>)</a>
                </li>
                <?php endif; ?>
            </ul>
        </div>
    </div>
</div>
<div id="header"  class="header">
    <div class="logo"><a href="#"><img src="/static/common/images/logo.png" /></a></div>
    <div class="Search">
        <p><input name="" type="text"  class="text"/><input name="" type="submit" value="搜索"  class="Search_btn"/></p>

    </div>

</div>
<!--导航栏样式-->
<div id="Menu">
    <div class="Menu_style">

        <!--菜单栏-->
        <div class="Navigation" id="Navigation">
            <ul class="Navigation_name">
                <li><a href="<?php echo url('home/index/index'); ?>">首页</a></li>
                <?php foreach($columnInfo as $vo): ?>
                <li><a href="<?php echo url('home/commodity/lists'); ?>?cid=<?php echo $vo['id']; ?>"><?php echo $vo['title']; ?></a></li>
                <?php endforeach; ?>
            </ul>
        </div>
        <script>$("#Navigation").slide({titCell:".Navigation_name li"});</script>
        <!--购物车-->
        <div class="Shopping_car">
            <em></em> 购物车(<b class="eee">0</b>)
        </div>
    </div>
</div>


<!--正文-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>产品展示</title>
</head>

<!--产品列表-->
<div id="page">
   <!--热卖商品-->

<!--位置-->
 <div class="Position">当前位置：<a href="#">首页</a> > <a  href="#">产品列表</a></div>
 <!--内容展示区样式-->
<div class="Show_style">

  <div class="product_list">
   <ul class="product_name">
	   <?php foreach($co_Info as $vo): ?>
   <li>
   <div class="p_item">
    <div class="img"><a href="<?php echo url('home/commodity/buy'); ?>?id=<?php echo $vo['id']; ?>"><img src="<?php echo $vo['image']; ?>" /></a></div>
	<div class="p_price">普通价：<b><?php echo $vo['price']; ?></b></div>
	<div class="p_name"><a href="<?php echo url('home/commodity/buy'); ?>?id=<?php echo $vo['id']; ?>"><?php echo $vo['name']; ?></a></div>
	<div class="p_operate"><a href="<?php echo url('home/commodity/buy'); ?>?id=<?php echo $vo['id']; ?>">购买</a> <span class="Number"><b><?php echo $vo['stock']; ?></b>库存</span></div>
	</div>
   </li>
	   <?php endforeach; ?>

   </ul> 
  </div>

</div>
<!--浏览商品-->

</div>
<!--底部样式-->
 <div class="slogen">
   <p><img src="/static/common/images/fuwu_56.png" /></p>
   <p><img src="/static/common/images/fuwu_57.png" /></p>
   <p><img src="/static/common/images/fuwu_58.png" /></p>
   <p><img src="/static/common/images/fuwu_59.png" /></p>
 </div>

</div>
</div>
<div id="bottom">

</div>
</body>
</html>





<script>

    $.ajax({
        type:'post',
        url:'<?php echo url('home/commodity/cartNum'); ?>',
        dataType:'json',

        success:function(data){
            $('.eee').text(data)
        }
    })


</script>


</body>
</html>